package cn.maxhou.mapper;

import cn.maxhou.entity.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int insert(User user);
    int checkusername(String username);
    int isUser(String username);
    int isAdmin(String username);
    int userlogin(@Param("username") String username, @Param("password") String password);
    int amdinlogin(@Param("username") String username, @Param("password") String password);
    User getUser(@Param("username") String username);
}
